package com.kayt.cyberBar.cuser.business.entity.po;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonBackReference;

/**
 * The persistent class for the b_cyber_base_task_reply database table.
 * 
 */
@Entity
@Table(name="b_cyber_base_task_reply")
@NamedQuery(name="BCyberBaseTaskReply.findAll", query="SELECT b FROM BCyberBaseTaskReply b")
public class BCyberBaseTaskReply implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String cyberCode;
	private String fromCode;
	private String fromName;
	private String name;
	private String replyDes;
	private String reportCode;
	private String toCode;
	private String toName;
	private String updateTime;
	
	private BCyberBaseTaskReport report;

	public BCyberBaseTaskReply() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	
	@Column(name="REPORT_CODE")
	public String getReportCode() {
		return reportCode;
	}


	public void setReportCode(String reportCode) {
		this.reportCode = reportCode;
	}


	@Column(name="CYBER_CODE")
	public String getCyberCode() {
		return this.cyberCode;
	}

	public void setCyberCode(String cyberCode) {
		this.cyberCode = cyberCode;
	}


	@Column(name="FROM_CODE")
	public String getFromCode() {
		return this.fromCode;
	}

	public void setFromCode(String fromCode) {
		this.fromCode = fromCode;
	}


	@Column(name="FROM_NAME")
	public String getFromName() {
		return this.fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	@Column(name="REPLY_DES")
	public String getReplyDes() {
		return this.replyDes;
	}

	public void setReplyDes(String replyDes) {
		this.replyDes = replyDes;
	}


	@Column(name="TO_CODE")
	public String getToCode() {
		return this.toCode;
	}

	public void setToCode(String toCode) {
		this.toCode = toCode;
	}


	@Column(name="TO_NAME")
	public String getToName() {
		return this.toName;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToOne(targetEntity = BCyberBaseTaskReport.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	@JoinColumn(name="REPORT_CODE", referencedColumnName="CODE", nullable = false, insertable=false, updatable=false)
	@JsonBackReference
	public BCyberBaseTaskReport getReport() {
		return report;
	}


	public void setReport(BCyberBaseTaskReport report) {
		this.report = report;
	}
	
	

}